
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.TaskPrevention;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage TaskPrevention entities.
 * 
 */
public interface TaskPreventionDAO extends JpaDao<TaskPrevention> {

	/**
	 * JPQL Query - findTaskPreventionByMemoContaining
	 *
	 */
	public Set<TaskPrevention> findTaskPreventionByMemoContaining(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findTaskPreventionByMemoContaining
	 *
	 */
	public Set<TaskPrevention> findTaskPreventionByMemoContaining(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllTaskPreventions
	 *
	 */
	public Set<TaskPrevention> findAllTaskPreventions() throws DataAccessException;

	/**
	 * JPQL Query - findAllTaskPreventions
	 *
	 */
	public Set<TaskPrevention> findAllTaskPreventions(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findTaskPreventionByPrimaryKey
	 *
	 */
	public TaskPrevention findTaskPreventionByPrimaryKey(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findTaskPreventionByPrimaryKey
	 *
	 */
	public TaskPrevention findTaskPreventionByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findTaskPreventionByMemo
	 *
	 */
	public Set<TaskPrevention> findTaskPreventionByMemo(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findTaskPreventionByMemo
	 *
	 */
	public Set<TaskPrevention> findTaskPreventionByMemo(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findTaskPreventionById
	 *
	 */
	public TaskPrevention findTaskPreventionById(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findTaskPreventionById
	 *
	 */
	public TaskPrevention findTaskPreventionById(Integer id_1, int startResult, int maxRows) throws DataAccessException;

}